import request from '@/utils/request'
//根据宠物状态(默认显示"未出售")
export function getpetsBystatus() {
  return request({
    url: `/app/pet/selectByStatues`,
    method: 'GET'
  });
}
//根据宠物Id获取数据
export function getpetsByPetId(petId) {
  return request({
    url: `/app/pet/selectById/${petId}`,
    method: 'GET'
  });
}
//根据宠物分类获取数据
export function getpetsByPetType(petType) {
  return request({
    url: `/app/pet/selectByType/${petType}`,
    method: 'GET'
  });
}
//修改宠物
export function updatePet(data) {
  return request({
    url: '/app/pet/updatePet',
    method: 'put',
	data: data,
  });
}